<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		window.onload= function () {
			title = document.getElementById('title');

			// title.innerHTML="<a href>百度一下</a>";

			alert(title.innerText)

		}
	</script>
</head>
<body>
	<p id="title"><a href="">学并思</a></p>
</body>
</html>